package com.one.mapper;

import com.one.pojo.UserTrasRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTrasRecordMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserTrasRecord record);

    int insertSelective(UserTrasRecord record);

    UserTrasRecord selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserTrasRecord record);

    int updateByPrimaryKey(UserTrasRecord record);

    int countNum(@Param("senderId") String senderId, @Param("receiveId") String receiveId);

    List<UserTrasRecord> findByPage(@Param("senderId") String senderId, @Param("receiveId") String receiveId, @Param("start") Integer PageNo, @Param("PageSize") Integer PageSize);

    List<UserTrasRecord> selectPageList(@Param("offset") int offset, @Param("pageSize") int pageSize,@Param("giftType")String giftType);

    int selectPageCount(String giftType);
}